from tests import BlogLogin
from tests import BlogList
from tests import BlogDetail
from tests import BlogEdit
from common.Utils import BlogDriver

if __name__ == "__main__":

    BlogLogin.BlogLogin().LoginFailTest()
    BlogLogin.BlogLogin().InterfaceElement()
    BlogLogin.BlogLogin().LoginSucTest()

    #登录成功后，就可以调用博客首页测试首页用例（登陆状态）
    BlogList.BlogList().ListTestByLogin()
    BlogList.BlogList().ListTestByFailLogin()

    BlogDetail.BlogDetail().DetailTestByFailLogin()
    #使登陆成功
    BlogLogin.BlogLogin().LoginSucTest()
    BlogDetail.BlogDetail().DetailTestByLogin()

    BlogEdit.BlogEdit().EditByLogin()

    BlogDriver.driver.quit()